package pt.uma.gap.ast;



import org.eclipse.jdt.core.dom.FieldDeclaration;
import org.eclipse.jdt.core.dom.VariableDeclarationFragment;

public class FieldASTInfo {

	private VariableDeclarationFragment variableDeclaration;
	private FieldDeclaration fieldDeclaration;
	
	public VariableDeclarationFragment getVariableDeclaration() {
		return variableDeclaration;
	}
	public void setVariableDeclaration(
			VariableDeclarationFragment variableDeclaration) {
		this.variableDeclaration = variableDeclaration;
	}
	public FieldDeclaration getFieldDeclaration() {
		return fieldDeclaration;
	}
	public void setFieldDeclaration(FieldDeclaration fieldDeclaration) {
		this.fieldDeclaration = fieldDeclaration;
	}
	public String getType() {
		return getFieldDeclaration().getType().toString() ;
	}
	public String getName() {
		return getVariableDeclaration().getName().toString();
	}
	
	
	
}
